﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DbManager.Objects
{
    public class SqlIndex :
        SqlObject
    {
        public SqlIndex(String name) : base(name) { }

        #region Public Properties

        private readonly List<SqlField> columns = new List<SqlField>();
        public List<SqlField> Columns { get { return columns; } }

        public bool Unique { get; set; }

        #endregion 


        #region Overrides

        protected override void Init()
        {
            Unique = true;
        }

        public override bool CanBeNull()
        {
            return true;
        }
        #endregion 

    }
}
